package source.s02.t2.test;


import source.s02.t2.extthread.ThreadA;
import source.s02.t2.extthread.ThreadB;
import source.s02.t2.service.HasSelfPrivateNum;

public class Run {

	public static void main(String[] args) {
		//方法外变量线程不安全,addI加 synchronized 安全
		HasSelfPrivateNum numRef = new HasSelfPrivateNum();

		ThreadA athread = new ThreadA(numRef);
		athread.start();

		ThreadB bthread = new ThreadB(numRef);
		bthread.start();

	}

}
